package pingan.com.imandtwo.interfaces;

import java.util.Map;

import io.reactivex.Flowable;
import pingan.com.imandtwo.bean.Shouye;
import pingan.com.imandtwo.beans.BannerBean;
import pingan.com.imandtwo.beans.IsRegisterBean;
import pingan.com.imandtwo.beans.LoginBean;
import pingan.com.imandtwo.beans.ValidateCodeBean;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

/**
 * Created by xsj on 2018/2/5.
 */

public interface ApiServers {

    //轮播
    @GET("instantMessaging/carousel/findCarousel")
    Flowable<BannerBean> getCart(@QueryMap Map<String,String> map);

   //登录
    @GET("instantMessaging/user/login")
    Flowable<LoginBean> getLogin(@QueryMap Map<String,String> map);

    //手机验证码
    @GET("instantMessaging/user/smsVerification")
    Flowable<ValidateCodeBean> getPhoneNumber(@QueryMap Map<String,String> map);

    //注册
    @POST("instantMessaging/user/register")
    Flowable<ValidateCodeBean> getZhuCeData(@QueryMap Map<String,String> map);

    //判断手机号是否注册
    @GET("instantMessaging/user/VerifyPhoneNumber")
    Flowable<IsRegisterBean> getZhuCePhone(@QueryMap Map<String,String> map);

    //   // http://api.tianapi.com/vr/?key=4a82473783694ddebd495d47b16c906e&num=10
    @GET("vr/")
    Flowable<Shouye> getShouye(@QueryMap Map<String,String> map);

    //更改密码
    @POST("instantMessaging/user/forgetPassword")
    Flowable<ValidateCodeBean> getUpdatePsd(@QueryMap Map<String,String> map);

    //添加好友
    @GET("instantMessaging/friend/v1/addFriendByNotification")
    Flowable<ValidateCodeBean> getAddFriend(@QueryMap Map<String,String> map);
}
